#ifndef _PRIMITIVEHEAD_
#define _PRIMITIVEHEAD_

#include "Primitive.h"
#include "GeomHead.h"

class PrimitiveHead: public Primitive{
protected:
	GeomHead *mGeomPtr;
public:
	PrimitiveHead( double Mass ): Primitive( Mass ){
		mGeom = new GeomHead(mDim);
		mGeom->translate(mOffset);
		mGeom->setPhysObject(this);
		mGeomPtr = static_cast<GeomHead*>(mGeom);
	}
	PrimitiveHead(Vec3d _offset, Vec3d _dim, double Mass) : Primitive(_offset, _dim, Mass){
		mGeom = new GeomHead(mDim);
		mGeom->translate(mOffset);
		mGeom->setPhysObject(this);
		mGeomPtr = static_cast<GeomHead*>(mGeom);
	}
	~PrimitiveHead(){};
	
	Mat4d* getMassTensor();
};

#endif
